package app.yj.channel;

import android.content.Context;

import app.yj.channel.entity.BlogResult;
import tech.com.commoncore.utils.SPHelper;

/**
 * Anthor:Cpb
 * Time:2019/7/3
 * Desc: 内容缓存类
 */
public class ChannelCache {

    private static String mWebUrl = "";
    private static boolean mIsFinishBrowerAndGoApp = false;


    //开关缓存
    public static BlogResult getBlogResult(Context context) {
        return SPHelper.getDeviceData(context, "SwitchResult");
    }

    //开关缓存
    public static void setBlogResult(Context context, BlogResult mBlogResult) {
        SPHelper.saveDeviceData(context, "SwitchResult", mBlogResult);
    }

    public static String getWebUrl() {
        return mWebUrl;
    }

    public static void setWebUrl(String webUrl) {
        mWebUrl = webUrl;
    }

    public static boolean isIsFinishBrowerAndGoApp() {
        return mIsFinishBrowerAndGoApp;
    }

    public static void setIsFinishBrowerAndGoApp(boolean isFinishBrowerAndGoApp) {
        mIsFinishBrowerAndGoApp = isFinishBrowerAndGoApp;
    }

}
